import { http } from '@/utils/http'

/**
 * 小程序登录
 * @param data 请求参数
 */
export const wxLoginAPI = (data) => {
  return http({
    method: 'POST',
    url: '/auth/wx/login',
    data,
  })
}

export const userGetInfoAPI = () => {
  return http({
    method: 'get',
    url: '/auth/userinfo',
  })
}
